package com.ruoyi.paint.admin.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.paint.admin.mapper.CxcarMapper;
import com.ruoyi.paint.admin.domain.Cxcar;
import com.ruoyi.paint.admin.service.ICxcarService;

/**
 * 车辆总体信息Service业务层处理
 * 
 * @author itchen
 * @date 2024-07-05
 */
@Service
public class CxcarServiceImpl implements ICxcarService 
{
    @Autowired
    private CxcarMapper cxcarMapper;

    /**
     * 查询车辆总体信息
     * 
     * @param id 车辆总体信息主键
     * @return 车辆总体信息
     */
    @Override
    public Cxcar selectCxcarById(Long id)
    {
        return cxcarMapper.selectCxcarById(id);
    }

    /**
     * 查询车辆总体信息列表
     * 
     * @param cxcar 车辆总体信息
     * @return 车辆总体信息
     */
    @Override
    public List<Cxcar> selectCxcarList(Cxcar cxcar)
    {
        return cxcarMapper.selectCxcarList(cxcar);
    }

    /**
     * 新增车辆总体信息
     * 
     * @param cxcar 车辆总体信息
     * @return 结果
     */
    @Override
    public int insertCxcar(Cxcar cxcar)
    {
        return cxcarMapper.insertCxcar(cxcar);
    }

    /**
     * 修改车辆总体信息
     * 
     * @param cxcar 车辆总体信息
     * @return 结果
     */
    @Override
    public int updateCxcar(Cxcar cxcar)
    {
        return cxcarMapper.updateCxcar(cxcar);
    }

    /**
     * 批量删除车辆总体信息
     * 
     * @param ids 需要删除的车辆总体信息主键
     * @return 结果
     */
    @Override
    public int deleteCxcarByIds(Long[] ids)
    {
        return cxcarMapper.deleteCxcarByIds(ids);
    }

    /**
     * 删除车辆总体信息信息
     * 
     * @param id 车辆总体信息主键
     * @return 结果
     */
    @Override
    public int deleteCxcarById(Long id)
    {
        return cxcarMapper.deleteCxcarById(id);
    }
}
